pkgname=krunner
pkgver=5.36.0
pkgrel=1
pkgdesc='Framework for providing different actions given a string query'
arch="all"
url='https://community.kde.org/Frameworks'
license="GPL"
depends="plasma-framework threadweaver"
makedepends="extra-cmake-modules kdoctools python doxygen qt5-qttools-dev plasma-framework threadweaver"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-doc"

prepare() {
	mkdir $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="12d5c25fa3802bfcf2212b7d0c38cd4447e26593331526b87a87771ae8b9dd27706844a89e4cf736fbf2528103608154f70e8a86a562a4604b1694147f2263fe  krunner-5.36.0.tar.xz"
